package com_djm_2025_05_29;
import java.util.Scanner;
public class Demo4 {
    public static void main(String[] args) {
       Demo4 demo4 = new Demo4();
        Scanner scan = new Scanner(System.in);
        int number = scan.nextInt();
        System.out.println(demo4.isPrimeNumber(number));
    }

    public Boolean isPrimeNumber(int number) {

        boolean result = true;

        if(number == 1 || number == 2) {
            return result;
        }
        //write your code here......
        for(int i = 2; i < Math.sqrt(number);i++) {
            if( number % i == 0) {
                result = false;
            }
        }

        return result;

    }
}
